<script type="text/javascript">
{literal}
	$(document).ready(function() {
		$('#list').tablesorter();
		$('#list tbody tr:even').toggleClass('alt');
	});	
{/literal}
</script>
<br />
<div id="test_container" style="margin-top: 5px">
	<table id="list" cellspacing="0" cellpadding="0" class="grid" width="500px">
		<thead>
			<tr>
				<th class='first'>{translate}Clinical examination test{/translate}</th>
				<th class='last'>{translate}Delete{/translate}</th>	
			</tr>
		</thead>
		<tbody>
		{if isset($list)}
		{foreach from=$list item=item key=key}
			<tr id="{$key}">
			    
			    <td class='first'>
			        <a href="javascript:Edit({$key});" title="{translate}Edit test clinical examination{/translate}">{$item}</a>
			    </td>

                <td class='last'>
                    <a class="btn" href="javascript:Delete({$key});" 
                        title="{translate}Delete test clinical examination{/translate}"> 
                        <img src="../images/remove_small.png" alt="{translate}Delete{/translate}"></img>
                    </a>
                </td>

			</tr>
		{/foreach}
		{else}
			<tr><td class="first last" colspan="2" id='noresult'>{translate}No diagnosis available{/translate}
		{/if}
		</tbody>
	</table>		
</div>